#include "CNativeHandlerQt.h"

CNativeHandlerQt::CNativeHandlerQt(QWidget *parent) : CNativeHandler(parent) {
}

CNativeHandlerQt::~CNativeHandlerQt() {
}

void CNativeHandlerQt::updateResizable() {
    if (m_resizable) {
        w->setWindowFlags(w->windowFlags() & ~Qt::MSWindowsFixedSizeDialogHint);
    } else {
        w->setWindowFlags(w->windowFlags() | Qt::MSWindowsFixedSizeDialogHint);
    }
}

void CNativeHandlerQt::showEventEx(QShowEvent *event) {
    Q_UNUSED(event)

    bool native;
    emit testNative(&native);
    if (native) {
        bool value = false;
        emit testNative(&value, true);
    }

    return CNativeHandler::showEventEx(event);
}

void CNativeHandlerQt::paintEventEx(QPaintEvent *event) {
    Q_UNUSED(event)
}
